package com.example.dangdangbackend.service;

import com.example.dangdangbackend.DTO.AddOrderDTO;
import com.example.dangdangbackend.VO.BookTableVO;
import com.example.dangdangbackend.VO.OrderAndItemVO;
import com.example.dangdangbackend.VO.OrderDetailVO;
import com.example.dangdangbackend.entity.Order;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface OrderService {

    Order addOrder(AddOrderDTO addOrderDTO);

    PageInfo<OrderDetailVO> getOrderDetail(int pageSize, int pageNum);
    OrderAndItemVO findOrderAndItemsByOrderId(int orderId);

    Order getOrderByOrderId(int orderId);
}
